package cn.bdqn.mall.pojo;

import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

@Data
public class Order implements Serializable {
    private Integer id;
    private String orderNo;
    private Integer userId;
    private Timestamp orderDate;
    private Integer cost;
    private Integer status;

    public interface OrderStatus {
        int WAITING_PAY = 0;
        int PAY_SUCCESS = 1;
        int SHIPPING = 2;
        int COMPLATED = 3;
        int CANCEL = 4;
        int CLOSED = 5;
        int DELETED = 6;
    }
}
